//
//  UIView+ZDBExtension.swift
//  XinLangMicroblog
//
//  Created by MackBook on 16/9/23.
//  Copyright © 2016年 zx540006260. All rights reserved.
//

import UIKit

extension  UIView {
    
    
    
    @IBInspectable var cornerRadius: CGFloat {
        
        set{
            
            layer.cornerRadius = newValue
            
            layer.masksToBounds = newValue > 0
            
        }
        
        
        get{
            
            
            return layer.cornerRadius
            
        }
        
        
        
    }
    
}
